import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { HUAN_ZHE_A } from 'src/app/core/service';

@Component({
  templateUrl: './yypj.component.html',
  styleUrls: ['./yypj.component.scss']
})
export class YypjComponent implements OnInit {

  tooltips1 = ['糟糕', '无效', '一般', '好', '非常好'];
  tooltips2 = ['糟糕', '无效', '一般', '好', '非常好'];
  tooltips3 = ['糟糕', '无效', '一般', '好', '非常好'];
  value1 = 4.5;
  value2 = 5;
  value3 = 4.6;
  blfyData = [
    { text: '皮肤、粘膜出现瘀点', sel: false },
    { text: '皮疹', sel: false },
    { text: '恶心、呕吐、腹泻', sel: false },
    { text: '视觉障碍', sel: false },
    { text: '肌肉震颤、排尿困难', sel: false },
    { text: '焦虑、不安、烦躁', sel: false },
    { text: '头痛、疲倦、不明原因的肌肉痛', sel: false },
  ];
  _yaopinList = [
    { img: '../../../../../assets/img/lblcncrp.png', name: '雷贝拉唑钠肠溶片', guige: '20mg*7片/盒', changshang: '成都迪康制药公司', sms: '../../../../../assets/img/lblcncrpsms.png' },
    { img: '../../../../../assets/img/jtjssbjn.png', name: '胶体酒石酸铋胶囊(久铋)', guige: '55mg*24粒/盒', changshang: '山西星火维敏制药有限公司', sms: '../../../../../assets/img/jtjssbjnmsm.png' },
  ];
  // value = 3;

  constructor(
    private router: Router
  ) { }

  isShow(bool: boolean) {
    if (bool) {
      HUAN_ZHE_A
      this._yaopinList = [
        { img: '../../../../../assets/img/lblcncrp.png', name: '雷贝拉唑钠肠溶片', guige: '规格：0.1*6颗', changshang: '成都迪康制药公司', sms: '../../../../../assets/img/lblcncrpsms.png' },
        { img: '../../../../../assets/img/jtjssbjn.png', name: '胶体酒石酸铋胶囊(久铋)', guige: '55mg*24粒/盒', changshang: '山西星火维敏制药有限公司', sms: '../../../../../assets/img/jtjssbjnmsm.png' },
        { img: '../../../../../assets/img/0003.png', name: '枸枸橼酸莫沙比利片', guige: '5mg*10片/盒', changshang: '亚宝药业集团股份有限公司', sms: '../../../../../assets/img/0003msm.png' },
        { img: '../../../../../assets/img/004.png', name: '克拉霉素缓释片', guige: '0.5g*7片/盒', changshang: '海南普利制药股份有限公司', sms: '../../../../../assets/img/004msm.png' },
      ];
    } else {
      this._yaopinList = [
        { img: '../../../../../assets/img/lblcncrp.png', name: '雷贝拉唑钠肠溶片', guige: '20mg*7片/盒', changshang: '成都迪康制药公司', sms: '../../../../../assets/img/lblcncrpsms.png' },
        { img: '../../../../../assets/img/jtjssbjn.png', name: '胶体酒石酸铋胶囊(久铋)', guige: '55mg*24粒/盒', changshang: '山西星火维敏制药有限公司', sms: '../../../../../assets/img/jtjssbjnmsm.png' },
      ];
    }
  }
  toPage(url: string) {
    this.router.navigateByUrl(url);
  }

  changeLang(lang: string) {
  }

  ngOnInit() {
  }
  handleCancel(): void {
    this.issm = false;
    this.isFK=false;
  }
  teg: string;
  issm = false;
  ontegimg(e): void {
    this.issm = true;
    this.teg = e.sms;
    console.log(this.teg)
  }
  isFK=false
  inputValue='';
  onZXFK(): void {
    this.isFK=true;
  }


}

